package pinpass;

public class ServicioPinPassProxy implements pinpass.ServicioPinPass {
  private String _endpoint = null;
  private pinpass.ServicioPinPass servicioPinPass = null;
  
  public ServicioPinPassProxy() {
    _initServicioPinPassProxy();
  }
  
  public ServicioPinPassProxy(String endpoint) {
    _endpoint = endpoint;
    _initServicioPinPassProxy();
  }
  
  private void _initServicioPinPassProxy() {
    try {
      servicioPinPass = (new pinpass.ServicioPinPassServiceLocator()).getServicioPinPass();
      if (servicioPinPass != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)servicioPinPass)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)servicioPinPass)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (servicioPinPass != null)
      ((javax.xml.rpc.Stub)servicioPinPass)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public pinpass.ServicioPinPass getServicioPinPass() {
    if (servicioPinPass == null)
      _initServicioPinPassProxy();
    return servicioPinPass;
  }
  
  public java.lang.String validar(java.lang.String coord1, java.lang.String coord2, java.lang.String coord3, int[] numeros, java.lang.String rut, java.lang.String passwd) throws java.rmi.RemoteException, org.orm.PersistentException{
    if (servicioPinPass == null)
      _initServicioPinPassProxy();
    return servicioPinPass.validar(coord1, coord2, coord3, numeros, rut, passwd);
  }
  
  public java.lang.String getCoordenadasEncript(java.lang.String rut, java.lang.String passwd) throws java.rmi.RemoteException, org.orm.PersistentException{
    if (servicioPinPass == null)
      _initServicioPinPassProxy();
    return servicioPinPass.getCoordenadasEncript(rut, passwd);
  }
  
  public java.lang.String getCodTarjeta(java.lang.String rut, java.lang.String passwd) throws java.rmi.RemoteException, org.orm.PersistentException{
    if (servicioPinPass == null)
      _initServicioPinPassProxy();
    return servicioPinPass.getCodTarjeta(rut, passwd);
  }
  
  public java.lang.String[] getArrayCoordenadas(java.lang.String rut, java.lang.String passwd) throws java.rmi.RemoteException, org.orm.PersistentException{
    if (servicioPinPass == null)
      _initServicioPinPassProxy();
    return servicioPinPass.getArrayCoordenadas(rut, passwd);
  }
  
  public java.lang.String validarEncript(java.lang.String coord1, java.lang.String coord2, java.lang.String coord3, java.lang.String str1, java.lang.String str2, java.lang.String str3, java.lang.String rut, java.lang.String passwd) throws java.rmi.RemoteException, org.orm.PersistentException{
    if (servicioPinPass == null)
      _initServicioPinPassProxy();
    return servicioPinPass.validarEncript(coord1, coord2, coord3, str1, str2, str3, rut, passwd);
  }
  
  public boolean verificarEncript(java.lang.String rut, java.lang.String password) throws java.rmi.RemoteException, org.orm.PersistentException{
    if (servicioPinPass == null)
      _initServicioPinPassProxy();
    return servicioPinPass.verificarEncript(rut, password);
  }
  
  
}